<?php

namespace App\Api\Controllers;

use App\Traits\ReponseJson;
use Illuminate\Routing\Controller;

class BaseController extends Controller
{
    use ReponseJson;

    public $user_id;

    public function __construct()
    {

        try {
            $this->user_id = auth('api')->payload()->get('sub');
        } catch (\Exception $e) {

        }
    }

}
